package game.sprite.collision;

public class MovableSpriteCollisionBehavior extends CollisionBehavior {

    private MovableSprite mySprite;

    public MovableSpriteCollisionBehavior (MovableSprite collidable) {
        super(collidable);
        mySprite = collidable;
    }

    @Override
    public void collide (MovableSprite collidable) {
        defaultCollision(mySprite);
    }

    @Override
    public void collide (ExplodingSprite collidable) {
        mySprite.die();
    }

}
